package com.example.everying.model.entity.user;/*
 * 项目名称: everything
 * 文件名: UserScore
 * 作者: 张泽阳
 * 日期: 2025/6/25
 * 描述:
 */

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("user_score")
public class UserScore {
    @ApiModelProperty(value = "主键")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long  id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "评价平均值")
    private Double commentAverage;

    @ApiModelProperty(value = "信用加权值")
    private Double creditWeight;

    @ApiModelProperty(value = "信用值")
    private Double creditValue;

    @ApiModelProperty(value = "最后更新信用分的月份")
    private Integer lastCreditUpdateMonth;

    @ApiModelProperty(value = "本月已增加信用值")
    private Double monthlyCreditIncrement;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
